home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / REGRESS < prev    next >
Encoding:
Text File  |  1999-12-13  |  580 b   |  27 lines

  1. #!/bin/sh
  2.  
  3. # Compare current StructuredText.py processing against prior versions.
  4. # You should see no output if there are no discrepancies.
  5.  
  6. regressdir=`dirname $0`
  7. PYTHONPATH=`cd $regressdir/../..; pwd`:$PYTHONPATH
  8. export PYTHONPATH
  9.  
  10. differences=""
  11. for i in *.stx; do
  12.   stx=$i
  13.   base=`basename $i .stx`
  14.   ref=$base.ref
  15.   new=$base.new
  16.   python ../StructuredText.py $stx > $new
  17.   if cmp $ref $new; then
  18.     :
  19.   else
  20.     differences="$differences $stx"
  21.   fi
  22. done
  23.  
  24. if [ -n "$differences" ]; then
  25.   echo "Differences encountered processing$differences."
  26. fi
  27.